<?php
require_once "checklogin.php";
require_once "../lib/MySQLDB.class.php";
require_once "../lib/Page.class.php";
$db=MySQLDB::getInstance();
$pageSize=1;
$page=isset($_GET["page"])?$_GET["page"]:1;
$sql="select count(*) cnt from admininfo";
$res=$db->fetchRow($sql);
$cnt=$res["cnt"];

$start=($page-1)*$pageSize;
$sql="select userID,userName,userRoleID,addDate from admininfo limit $start,$pageSize";
$dataArr=$db->fetchAll($sql);

$Page=new Page($cnt,$pageSize,$page,"?page={page}",3);
$pageHtml=$Page->getPageHtml();
require_once "view/adminList.html";
